package com.example.udpDemo.controller;
import com.example.udpDemo.common.utils.EnvironmentUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangdachuan
 * @version 1.0
 * @date 2023/5/5 22:37
 **/
@RestController
@RequestMapping("/env")
public class EnvironmentController {


    /**
     * 获取配置文件中的参数
     *
     * @return {@link String}
     */
    @GetMapping("/getAppKey")
    public String getAppKey(){
        return EnvironmentUtil.appKey;
    }

}
